package com.itheima.d14_extends_constructor.test;

public class Demo1super {
    public static void main(String[] args) {
        // 目标：搞清楚子类构造器为什么要调用父类构造器，有啥应用场景。

        Teacher t1 = new Teacher();
        System.out.println("t1.getName() = " + t1.getName());
        System.out.println("t1.getAge() = " + t1.getAge());


        Teacher t2 = new Teacher("张三",18,"Java");
        System.out.println(t2.getName()+","+t2.getAge()+","+t2.getSkill());

    }
}
